<?php 
	require_once("lib/DatabaseConnection.php");
	$db = new DatabaseConnection();
	//Hårdkodat
	$gameId = "1";
  $turnTimer = "empty";
	if($db->Open())
	{
		$turnTimer = 0;
		if($stmt = $db->Prepare("SELECT TurnTimer FROM Games WHERE GamesID = ?"))
		{		
		$stmt->bind_param("s", $gameId );
		$stmt->execute();
		$stmt->bind_result( $turnTimer );
		$stmt->fetch();
		$stmt->close();
		$db->Close();
		}
		
		echo $turnTimer;
	}
?>